home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XPolygonRegion.z / XPolygonRegion
Encoding:
Text File  |  1998-10-30  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXPPPPoooollllyyyyggggoooonnnnRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXPPPPoooollllyyyyggggoooonnnnRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XPolygonRegion, XClipBox - generate regions
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           Region XPolygonRegion(_p_o_i_n_t_s, _n, _f_i_l_l__r_u_l_e)
  13.                 XPoint _p_o_i_n_t_s[];
  14.                 int _n;
  15.                 int _f_i_l_l__r_u_l_e;
  16.  
  17.           XClipBox(_r, _r_e_c_t__r_e_t_u_r_n)
  18.                 Region _r;
  19.                 XRectangle *_r_e_c_t__r_e_t_u_r_n;
  20.  
  21.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  22.           _f_i_l_l__r_u_l_e Specifies the fill-rule you want to set for the
  23.                     specified GC.  You can pass _E_v_e_n_O_d_d_R_u_l_e or
  24.                     _W_i_n_d_i_n_g_R_u_l_e.
  25.  
  26.           _n         Specifies the number of points in the polygon.
  27.  
  28.           _p_o_i_n_t_s    Specifies an array of points.
  29.  
  30.           _r         Specifies the region.
  31.  
  32.           _r_e_c_t__r_e_t_u_r_n
  33.                     Returns the smallest enclosing rectangle.
  34.  
  35.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  36.           The _X_P_o_l_y_g_o_n_R_e_g_i_o_n function returns a region for the polygon
  37.           defined by the points array.  For an explanation of
  38.           fill_rule, see _X_C_r_e_a_t_e_G_C.
  39.  
  40.           The _X_C_l_i_p_B_o_x function returns the smallest rectangle
  41.           enclosing the specified region.
  42.  
  43.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  44.           XCreateGC(3X11), XDrawPoint(3X11), XDrawRectangle(3X11)
  45.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.